package com.wltt.product.frfront.controller;

import com.wltt.product.frfront.model.ResultData;
import com.wltt.product.frfront.model.vo.ListLogREQ;
import com.wltt.product.frfront.service.RobotLogService;
import jakarta.annotation.Resource;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping(value = "/api/robotLog")
public class RobotLogController {

    private static final Logger logger = LogManager.getLogger(RobotLogController.class);


    @Resource
    private RobotLogService robotLogService;


    /**
     * 机器人执行日志
     *
     * @return
     */
    @ResponseBody
    @RequestMapping(value = {"/listLog"}, method = RequestMethod.POST)
    public ResultData listLog(@RequestBody ListLogREQ listLogReq) {
        return robotLogService.listLog(listLogReq);
    }
}

